package core.util
{
	import mx.utils.StringUtil;
	
	public class Regular
	{
		public static const NUMBER:String 			= "NUMBER";				//只是数字
		public static const CHARACTER:String 		= "CHARACTER";			//只是字母
		public static const NUMBER_CHARACTER:String = "NUMBER_CHARACTER";	//数字字母
		public static const STRING:String 			= "STRING";				//所有的非空白
		public static const ABUSE:String 			= "ABUSE";				//谩骂语
		public static const NONE:String 			= "NONE";				//去掉首尾空白
		
		//////////////////////////////////////////////
		private var num:String = "0123456789";
		private var str:String = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
		
		public static function StringFilter(str:String, type:String = Regular.NONE):String
		{
			str = StringUtil.trim(str);
			switch(type)
			{
				case Regular.NONE:
					break;
				case Regular.NUMBER:
					break;
			}
			return str;
		}
	}
}
